package com.itheima.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "health.alioss")
public class AliOssProperties {
//    @Value("${health.alioss.endpoint}")
    private String endpoint;
//    @Value("${health.alioss.access-key-id}")
    private String accessKeyId;
//    @Value("${health.alioss.access-key-secret}")
    private String accessKeySecret;
//    @Value("${health.alioss.bucket-name}")
    private String bucketName;

}